﻿.management-team-section {
    display: flex;
    flex-direction: row;
    gap: 1.875rem;
    flex-wrap: wrap;
    justify-content: center;
}

.people-group {
    text-align: center;
}

.people-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.person-card {
    color: #fff;
    overflow: hidden;
    text-align: center;
    width: 240px;
    height: 100%;
    max-height: 331px;
    border-radius: 4px;
    position: relative;
}

.person-info {
    padding: 1rem;
    position: absolute;
    bottom: 0;
    color: var(--brand-white);
    text-align: left;
}

.person-name {
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--brand-white);
    display: flex;
    align-items: center;
}

.person-title {
    font-size: 0.875rem;
    margin-top: 0.2rem;
    color: var(--brand-white);
}

.hover-description {
    display: none;
}

.person-image-wrapper {
    position: relative;
}

.person-photo {
    width: 100%;
    height: 100%;
    min-height: 331px;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}

.person-card.has-description:hover .person-photo {
    filter: brightness(40%);
}

.green-box {
    display: inline-block;
    width: 0.25rem;
    height: 1rem;
    background: #a4ce4c;
    margin-right: 8px;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: start;
    opacity: 0;
    padding: 2.5rem 1.5rem;
    background-color: rgba(0, 0, 0, .8);
    transition: opacity 0.3s ease;
    color: var(--brand-white);
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.4;
    z-index: 10;
}

.person-card.has-description:hover .hover-overlay {
    opacity: 1;
}

.swiper-slide {
    width: auto;
}

.swiper-wrapper {
    justify-content: center;
    gap: 1.875rem;
}

@media(max-width: 768px) {
    .swiper-slide {
        width: 100%;
    }

    .swiper-wrapper {
        justify-content: unset;
        gap: 0;
    }

    .management-team-section {
        display: flex;
        flex-wrap: unset;
        justify-content: unset;
        gap: 0;
    }

    .person-card {
        width: 100%;
    }
}